<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\MktUser */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => 'Mkt Users', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="mkt-user-view">

    <p>
        <?php echo Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?php echo Html::a('Delete', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?php echo DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'mobile',
            'email:email',
            'qq',
            'weixin_number',
            'industry_id',
            'area_id',
            'name',
            'company',
            'duty',
            //'password',
            //'auth_key',
            //'password_hash',
            //'password_reset_token',
            //'access_token',
            'disabled',
            'status',
            'create_time',
            'update_time',
            'openid',
            //'unionid',
            'subscribe',
            'subscribe_time:datetime',
            'nickname',
            'sex',
            'city',
            'country',
            'province',
            'headimgurl:url',
            'on_message_post',
            'on_message_friend',
            'on_message_friend_log',
            'on_message_system',
            'on_quiet',
            'on_quiet_start_time',
            'on_quiet_end_time',
            'on_show_mobile',
            'on_show_qq',
            'on_show_weixin',
            'on_show_email:email',
        ],
    ]) ?>

</div>
